<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}"  media="all">
</head>
<body>
    <h1>添加教师</h1>
    <form class="layui-form layui-form-pane" action="uploads/upload" method="post">
        <div class="layui-form-item">
            <label class="layui-form-label">专辑名</label>
            <div class="layui-input-inline">
                <input type="text" name="alName" required lay-verify="required" placeholder="请输入专辑名" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">多选歌手</label>
            <div class="layui-input-block" id="tag_ids2"> </div>
        </div>
        <!--定义一个隐藏的输入框，用来存储音频的位置-->
        <input type="hidden" id="alPath" name="alPath">
        <div class="layui-form-item">
            <label class="layui-form-label">专辑封面</label>
            <div class="layui-input-inline">
                <div class="layui-upload">
                    <button type="button" class="layui-btn" id="uploadMpath">上传封面</button>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="sub">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</body>
<script th:src="@{/layui/layui.js}" charset="utf-8"></script>
<!-- 注意：如果你直接复制所有代码到本地，上述 JS 路径需要改成你本地的 -->
<script th:src="@{/js/add_teacher.js}" charset="utf-8"></script>
<!-- 注意：这里需要和你所创建的js文件相符合，否则没有表格显示 -->
<script th:src="@{/js/multi_select.js}" charset="utf-8"></script>
</html>